package com.mti.epivisitemobile.view
{
	import com.mti.epivisitemobile.Constants;
	
	import flash.events.MouseEvent;
	
	import mx.events.FlexEvent;
	
	import org.puremvc.as3.patterns.mediator.Mediator;
	
	public class AboutViewMediator extends Mediator
	{
		public static const NAME:String = "AboutViewMediator";
		
		public function AboutViewMediator(viewComponent:AboutView)
		{
			super(NAME, viewComponent);
			
			viewComponent.addEventListener(FlexEvent.CREATION_COMPLETE, handleViewCreated);
		}
		
		private function handleViewCreated(evt:FlexEvent):void
		{
			view.removeEventListener(FlexEvent.CREATION_COMPLETE, handleViewCreated);
		}
		
		private function get view():AboutView
		{
			return viewComponent as AboutView;
		}
	}
}